/*
 * @Descripttion: 核酸宝项目前端
 * @version: 
 * @Author: 杜宇轩
 * @Date: 2022-05-22 05:23:33
 * @LastEditors: 杜宇轩
 * @LastEditTime: 2022-05-22 06:16:20
 */
module.exports = {
  lintOnSave: false,
  devServer: {
    hot: true,
    port: 80,
    https: false,
    open: true,
    proxy: {
      '/api/natms1': { // 本地
        target: 'http://192.168.96.103:9528/',
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/api': '/'
        }
      },
      '/api/natms': { // 本地
        target: 'http://192.168.96.163:9527/',
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/api': '/'
        }
      }
    },
    headers: {
      'Access-Control-Allow-Origin': '*'
    }
  }
}
